package com.chushouya.manager.dto.admin.user.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录参数
 */
@Data
@ApiModel("免登陆登录参数")
public class MobileLoginDTO {

    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空")
    private String phone;

    @ApiModelProperty("登录平台")
    private String platform;

    @ApiModelProperty("小程序openId/无openId传mobile")
    private String openId;

    @ApiModelProperty("appId")
    private String appId;

    @ApiModelProperty("promoteLabel")
    @NotBlank(message = "promoteLabel不能为空")
    private String promoteLabel;

}
